package com.spring.bean.lifecycle;

public class Lifecycle {
    private String content;

    public void setContent(String content) {

        this.content = content;
    }
    public void inin(){
        System.out.println("Bean初始化后，调用inin()方法");
    }
    public void destroy(){
        System.out.println("Bean销毁前，调用destoy()方法");
    }
    public void print(){
        System.out.println("输出属性值：+content");
    }
}

